package com.zzh.classloader;

import java.net.URL;
import java.net.URLClassLoader;

/**
 * @author 张占恒.
 * @date 2020/8/6.
 * @time 14:50.
 * 查看扩展类加载器加载路径
 */
public class ExtClassLoaderDemo {
    public static void main(String[] args) {
        ClassLoader classLoader = ClassLoader.getSystemClassLoader().getParent();
        URLClassLoader urlClassLoader = (URLClassLoader) classLoader;
        URL[] urls = urlClassLoader.getURLs();
        for (URL url : urls) {
            System.out.println(url);
        }
    }
}
